Perm to check for existence of folder in config area?

There doesn't seem to be a perm to check for existence of folder in config area? Does anyone know how to check for the existence of a folder?

confFileExists shows all files and folders. We're looking for a way to distinguish between files and folders.

 

Thanks!

 

Paul


Paul.Walchli - Fri Sep 19 15:38:08 EDT 2014

Re: Perm to check for existence of folder in config area?
Wolfgang Uhr - Sat Sep 20 01:00:50 EDT 2014

Try to read the whatever. If there is content, there is a file.

Re: Perm to check for existence of folder in config area?
llandale - Mon Sep 22 14:55:12 EDT 2014

//***************************************************
bool fConf_IsDir(string in_NameDir, ConfType in_ct)
{ // Is the named Directory a valid Configuration File directory
 // Developer's Note: I notice that the "for file in confDirectory.." loop DOES
 //   work when file is a file and not a sub-directory.  In fact, you get one
 //   result of garbage.  The only way I can think of to find out if a named file is
 //   really a sub-directory is to loop through its files hoping to find the standard
 //   Windows "." and ".." files.  Also, first check to see if its a file.
 //   I don't suppose this function works on Unix machines, however.

 string NameFile, NameBase
 int    iDebugCount = 0

 if (!fConf_Exists(in_NameDir, in_ct))  return(false) // Does not exist
 NameBase = fBaseName(in_NameDir)
 if (NameBase == "." or
     NameBase == "..")    return(true) // This is a redirected folder
 for NameFile in confDirectory(in_NameDir, in_ct) do
 {  //if (iDebugCount++ < 30) print "\t>>fConf_IsDir:\t{" in_NameDir "}\t{" NameFile "}\n"
    if (NameFile == "." or
        NameFile == "..")    return(true) // This folder has redirected folders
 }
 return(false)
} // end fConf_IsDir()

-Louie